package com.sinbader.xiaole.common.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("in_stock_info_detail")
@ApiModel(value="InStockInfoDetail对象", description="入库单（采购入库、调拨入库）明细")
public class InStockInfoDetail implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "主表ID")
    @TableField("in_stock_info_id")
    private Long inStockInfoId;

    @ApiModelProperty(value = "门店ID （0表示总部 ）")
    @TableField("org_id")
    private Long orgId;

    @ApiModelProperty(value = "入库单号：入库单表 “入库单号“")
    @TableField("in_stock_num")
    private String inStockNum;

    @ApiModelProperty(value = "商品id")
    @TableField("product_id")
    private Long productId;

    @ApiModelProperty(value = "商品名称")
    @TableField("product_name")
    private String productName;

    @ApiModelProperty(value = "产地")
    @TableField("produce_place")
    private String producePlace;

    @ApiModelProperty(value = "品牌")
    @TableField("brand")
    private String brand;

    @ApiModelProperty(value = "适用车型")
    @TableField("apply_car_model")
    private String applyCarModel;

    @ApiModelProperty(value = "供应商id")
    @TableField("supplier_id")
    private Long supplierId;

    @ApiModelProperty(value = "供应商名称")
    @TableField("supplier_name")
    private String supplierName;

    @ApiModelProperty(value = "仓库id")
    @TableField("warehouse_id")
    private Long warehouseId;

    @ApiModelProperty(value = "仓库名称")
    @TableField("warehouse_name")
    private String warehouseName;

    @ApiModelProperty(value = "货架id")
    @TableField("shelf_id")
    private Long shelfId;

    @ApiModelProperty(value = "货架名称")
    @TableField("shelf_name")
    private String shelfName;

    @ApiModelProperty(value = "入库数量")
    @TableField("count")
    private Integer count;

    @ApiModelProperty(value = "实际到货数量")
    @TableField("actual_arrival_count")
    private Integer actualArrivalCount;

    @ApiModelProperty(value = "入库单价(单价）")
    @TableField("in_stock_price")
    private BigDecimal inStockPrice;

    @ApiModelProperty(value = "入库总金额")
    @TableField("in_stock_total_amt")
    private BigDecimal inStockTotalAmt;

    @ApiModelProperty(value = "单位")
    @TableField("unit")
    private String unit;

    @ApiModelProperty(value = "入库方式 1:一般入库(采购入库)  2:调拨入库")
    @TableField("in_warehouse_type")
    private Integer inWarehouseType;

    @ApiModelProperty(value = "图片存储路径")
    @TableField("image_path")
    private String imagePath;

    @ApiModelProperty(value = "仓位")
    @TableField("position")
    private String position;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "经手人id")
    @TableField("handle_user")
    private Long handleUser;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "创建人id")
    @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    @ApiModelProperty(value = "审核人id")
    @TableField("audit_user")
    private Long auditUser;

    @ApiModelProperty(value = "审核时间")
    @TableField("audit_time")
    private Date auditTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "打印时间")
    @TableField("print_time")
    private Date printTime;

    @ApiModelProperty(value = "更新人id")
    @TableField(value = "update_user", fill = FieldFill.UPDATE)
    private Long updateUser;

    @ApiModelProperty(value = "默认为0,1为删除")
    @TableField("is_delete")
    private Integer isDelete;

    @ApiModelProperty(value = "单据状态")
    @TableField("status")
    private Integer status;


}
